package com.ynet.middleground.riskmanage.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author songyf
 * @description 质押监管情况查询
 * @date 2020-08-20 14:10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "大港质押监管情况信息", description = "大港质押监管情况请求信息")
public class DgCargoControlQueryReq extends BaseReqObj {

    private static final long serialVersionUID = 7821250196788529031L;

    @ApiModelProperty(value = "出质人ID,动态质押时必填", notes = "出质人ID,动态质押时必填")
    private String userNo;
    
    @ApiModelProperty(value = "出质人", notes = "出质人")
    private String userName;
    
    @ApiModelProperty(value = "查询类型(静态质押/动态质押),1为静态质押,2为动态质押", notes = "查询类型(静态质押/动态质押),1为静态质押,2为动态质押", required = true)
    @NotBlank(message = "查询类型不能为空")
    private String queryType;
    
    @ApiModelProperty(value = "货号,静态质押时传,静态质押时必填", notes = "货号,静态质押时传,静态质押时必填")
    private String itemNo;
    
    @ApiModelProperty(value = "货种代码,动态质押上传", notes = "货种代码,动态质押上传")
    private String typeCode;
    
    @ApiModelProperty(value = "货种名称,动态质押上传", notes = "货种名称,动态质押上传")
    private String typeName;
}
